<section *ngIf="showForm && (param.addType == 0 || type == 1)">
  <sf [formData]="param" [schema]="schema" (formSubmit)="submit($event)"></sf>
</section>
<section *ngIf="param.addType == 1">
  <form nz-form  [formGroup]="validateForm" (ngSubmit)="submitForm(validateForm.value)">
    <nz-form-item>
      <nz-form-label [nzSpan]="5" nzRequired >起始楼层</nz-form-label>
      <nz-form-control nzSpan="6" nzErrorTip="只能输入数字或字母">
        <input nz-input type="text" formControlName="startFloor">
      </nz-form-control>
      <nz-form-label [nzSpan]="5"   nzRequired >截止楼层</nz-form-label>
      <nz-form-control nzSpan="6" nzErrorTip="只能输入数字或字母">
        <input nz-input type="text" formControlName="endFloor">
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label [nzSpan]="5" nzRequired >起始房号</nz-form-label>
      <nz-form-control nzSpan="6" nzErrorTip="只能输入数字或字母">
        <input nz-input  type="text" formControlName="startRoom">
      </nz-form-control>
      <nz-form-label [nzSpan]="5" nzRequired >截止房号</nz-form-label>
      <nz-form-control nzSpan="6" nzErrorTip="只能输入数字或字母">
        <input nz-input  type="text" formControlName="endRoom">
      </nz-form-control>
    </nz-form-item>
    <nz-form-item class="text-center">
      <button nz-button nzType="primary">提交</button>
      <button nz-button (click)="resetForm($event)">重置</button>
    </nz-form-item>
  </form>
</section>

